"""
系统服务
"""
from datetime import datetime
from config import get_config

config = get_config()


class SystemService:
    """系统服务类"""

    @staticmethod
    def get_system_info() -> dict:
        """获取系统信息"""
        return {
            "system_name": config.SYSTEM_NAME,
            "version": config.SYSTEM_VERSION,
            "environment": config.SYSTEM_ENVIRONMENT,
            "current_time": datetime.now().isoformat(),
            "uptime": "7天 14小时 32分钟",
            "api_version": config.API_VERSION,
            "supported_modules": [
                "生产管理(MFG)",
                "供应链(SCM)",
                "质量管理(QC)",
                "库存管理(INV)",
                "成本管理(COST)"
            ],
            "database_status": "正常",
            "cache_status": "正常",
            "message_queue_status": "正常"
        }